package com.jcl.cloud.services.login;

import com.jcl.cloud.services.login.service.RedisService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;


@EnableDiscoveryClient
@SpringBootApplication
@EnableEurekaClient
public class LoginWorkerMicroService {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(LoginWorkerMicroService.class, args);
        //init(context);

    }


    public static void init(ApplicationContext context){

        RedisService redisService = (RedisService) context.getBean("redisService");
        /*JedisPool jedisPool = (JedisPool) context.getBean("jedisPool");

        redisService.init(jedisPool,null);*/
        System.out.println();

    }


}
